package com.yunji.framework_template.books.biz.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.yunji.framework_template.books.orm.persistence.mapper.BooksTypeRelationMapper;
import com.yunji.framework_template.books.orm.persistence.model.BooksTypeRelation;
import com.yunji.framework_template.common.web.Page;

/**
 *
 * Created by fenglibin on 2019/01/24.
 */
@Service
public class BooksTypeRelationService {

	@Autowired
    private BooksTypeRelationMapper booksTypeRelationMapper;
    
    public int deleteByPrimaryKey(Integer id){
        return booksTypeRelationMapper.deleteByPrimaryKey(id);
    }

    public int insert(BooksTypeRelation record){
        return booksTypeRelationMapper.insert(record);
    }

    public int insertSelective(BooksTypeRelation record){
        return booksTypeRelationMapper.insertSelective(record);
    }

    public BooksTypeRelation selectByPrimaryKey(Integer id){
        return booksTypeRelationMapper.selectByPrimaryKey(id);
    }
    
    public List<BooksTypeRelation> selectByBookId(Integer bookId){
        return booksTypeRelationMapper.selectByBookId(bookId);
    }
    
    public List<BooksTypeRelation> selectByTypeId(Integer typeId){
        return booksTypeRelationMapper.selectByTypeId(typeId);
    }
    
    public BooksTypeRelation selectByBookIdTypeId(BooksTypeRelation record){
        return booksTypeRelationMapper.selectByBookIdTypeId(record);
    }

    public int updateByPrimaryKeySelective(BooksTypeRelation record){
        return booksTypeRelationMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(BooksTypeRelation record){
        return booksTypeRelationMapper.updateByPrimaryKey(record);
    }

    public List<BooksTypeRelation> selectByCondition(BooksTypeRelation record){
        return booksTypeRelationMapper.selectByCondition(record);
    }

    public List<BooksTypeRelation> selectAll(){
        return booksTypeRelationMapper.selectAll();
    }

    public List<BooksTypeRelation> selectByPage(Page<BooksTypeRelation> page){
        return booksTypeRelationMapper.selectByPage(page);
    }

    public Integer count(BooksTypeRelation record){
        return booksTypeRelationMapper.count(record);
    }

    public int deleteByCondition(BooksTypeRelation record){
        return booksTypeRelationMapper.deleteByCondition(record);
    }

}
